package com.ship.common.core.base;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @author 31463
 */
@Data
public class PageBean implements Serializable {
    private static final long serialVersionUID = -2567827112574505438L;

    /**
     * 页码
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Integer pageNum;

    /**
     * 页码
     */
    @TableField(exist = false)
    @ExcelIgnore
    private String orderField;

    /**
     * 每页条数
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Integer pageSize;

    /**
     * 查询参数，范围查找时用此参数传参如：createTimeStart=4156468468&createTimeEnd=18674654
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Object queryParams;

    /**
     * 范围查询参数，根据实体字段后面拼接Start或者End，如：{"idStart":1,"idEnd":10}，表示查询  1 < id < 10的数据
     */
    @TableField(exist = false)
    @ExcelIgnore
    private Map<String,Object> betweenParams;
}
